package com.dingding.es.annotation;

import com.dingding.es.constant.DataType;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * @author liugongding
 * @description:
 * @date 2023/4/14 4:11 PM
 */

@Documented
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Component
public @interface SearchField {

    //默认属性名
    String name() default "";

    //数据类型 not null
    DataType type();

    //分词
    String analyzer() default "";

    //搜索分词
    String searchAnalyzer() default "";
}
